/*
 * @Description:
 *
 * @Date: 2021-03-02 15:09:36
 */
import layout from '@/layout/index.vue'
import menuLayout from '@/components/menu-layout'

let proRouter = [
	{
		path: '/home',
		component: () => import('@/views/home/index.vue'),
		meta: {
			title: '首页',
		}
	},
	{
		path: '/',
		component: () => import('@/views/home/index.vue'),
		meta: {
			title: '首页',
		}
	},
	{
		path: '/list',
		component: menuLayout,
		redirect: '/list',
		meta: {
			title: '列表'
		},
		children: [
			{
				path: '/list/*',
				name: 'List',
				meta: {
					title: '列表'
				},
				component: () => import('@/views/list/index.vue')
			},
		]
	},
	{
		path: '/search',
		name: 'Search',
		meta: {
			title: '搜索结果'
		},
		component: () => import('@/views/search/index.vue')
	},
	{
		path: '/partybookshelf',
		name: 'bookshelf',
		meta: {
			title: '党校书架'
		},
		component: () => import('@/views/bookshelf/index.vue')
	},
	{
		path: '*',
		component: () => import('@/views/error/404.vue'),
	},
	{
		path: '/redirect',
		component: () => import('@/views/redirect/index.vue'),
	},
	{
		path: '/401',
		component: () => import('@/views/error/401.vue'),
	},
	{
		path: '/iamErr',
		component: () => import('@/views/error/iamErr.vue'),
	},
	{
		path: '/mobileErr',
		component: () => import('@/views/error/mobileErr.vue'),
	},
]
export default proRouter
